# include <iostream>
typedef std::string str;

int main (int argc, char** args)
{
  std::string name = "World";
  if (argc>=2)
    {
      if (str ("--help") == args[1])
        {
          system ("man ./docs/hi.1");
          return 2;
        }else if (str ("--version") == args[1])
        {
          system ("cat .bbpm/config | sed 's/ /\n/' | grep version= | sed 's/\\=/ /'");
          return 2;
        }
      name=args[1];
    }
  std::cout << "Hello, " << name << "!" << std::endl;

  return 0;
}

